package jjn.acwing.java_basic;

import java.util.Scanner;

/**
 * @author Jjn
 * @since 2023/8/19 14:00
 */
public class Acwing658 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double a = scanner.nextDouble();
        double b = scanner.nextDouble();
        double c = scanner.nextDouble();
        if (a == 0 || (b * b < 4 * a * c)) {
            System.out.println("Impossivel calcular");
            return;
        }
        double sqrt = Math.sqrt(b * b - 4 * a * c);
        double x1 = (-1 * b + sqrt) / (2 * a);
        double x2 = (-1 * b - sqrt) / (2 * a);
        System.out.printf("R1 = %.5f\n", x1);
        System.out.printf("R2 = %.5f\n", x2);
    }
}
